package common.project.epic.db;

import android.content.SharedPreferences;

/*
 * This class store the data related to an Epic message
 * */

public class EpicNote { 
	private String note_id;
    private long note_expire_time_in_seconds;
    private double note_creation_lat;
    private double note_creation_lon;
    private double note_creation_alt;
    private int note_geo_span;
    private boolean[] note_categories;
    private String note_creator_id; 
    private String note_title;
    private String note_content;
    private String note_extra_type; // es.: {null}, {jpeg}, {jpeg, txt, mp3} 
    private String note_extra_content; // es.: {null}, {URI}, {URI_1, URI_2, URI_3}
    
    private static boolean[] all_categories_are_false = {false, false, false, false,
			false, false, false, false,
			false, false, false, false,
			false, false, false, false};
    	
    public EpicNote() {
    	this(null,
    			0, 
    			0.0, 0.0, 0.0, 
    			0, 
    			all_categories_are_false,
    			null,
    			null, null, null, null);
    }
    
    public EpicNote(String note_id, 
    		long note_expire_time_in_seconds,
    		double note_creation_lat, double note_creation_lon, double note_creation_alt, 
    		int note_geo_span,
    		boolean[] note_categories,
    		String note_creator_id,
    		String note_title, String note_content, String note_extra_type, String note_extra_content) {
    	
    	this.note_id = note_id;
    	this.note_expire_time_in_seconds = note_expire_time_in_seconds;
    	this.note_creation_lat = note_creation_lat;
    	this.note_creation_lon = note_creation_lon;
    	this.note_creation_alt = note_creation_alt;
    	this.note_geo_span = note_geo_span;
    	this.note_categories = note_categories;
    	this.note_creator_id = note_creator_id;
    	this.note_title = note_title;
    	this.note_content = note_content;
    	this.note_extra_type = note_extra_type;
    	this.note_extra_content = note_extra_content;
    }
    
    public void setNoteId(String note_id) {
    	this.note_id = note_id;
    }
    public void setExpireTimeInSeconds(long note_expire_time_in_seconds) {
    	this.note_expire_time_in_seconds = note_expire_time_in_seconds;
    }
    public void setLatitude(double note_creation_lat) {
    	this.note_creation_lat = note_creation_lat;
    }
    public void setLongitude(double note_creation_lon) {
    	this.note_creation_lon = note_creation_lon;
    }
    public void setAltitude(double note_creation_alt) {
    	this.note_creation_alt = note_creation_alt;
    }
    public void setGeoSpan(int note_geo_span) {
    	this.note_geo_span = note_geo_span;
    }
    public void setNoteCategory(boolean[] note_categories) {
    	this.note_categories = note_categories;
    }
    public void setNoteCreatorId(String note_creator_id) {
    	this.note_creator_id = note_creator_id;
    }
    public void setNoteTitle(String note_title) {
    	this.note_title = note_title;
    }
    public void setNoteContent(String note_content) {
    	this.note_content = note_content;
    }
    public void setExtraType(String note_extra_type) {
    	this.note_extra_type = note_extra_type;
    }
    public void setExtraContent(String note_extra_content) {
    	this.note_extra_content = note_extra_content;
    }
	
    public String getNoteId() {
    	return note_id;
    }
    public long getExpireTimeInSeconds() {
    	return note_expire_time_in_seconds;
    }
    public double getLatitude() {
    	return note_creation_lat;
    }
    public double getLongitude() {
    	return note_creation_lon;
    }
    public double getAltitude() {
    	return note_creation_alt;
    }
    public int getGeoSpan() {
    	return note_geo_span;
    }
    public boolean[] getNoteCategory() {
    	return note_categories;
    }
    public String getNoteCreatorId() {
    	return note_creator_id;
    }
    public String getNoteTitle() {
    	return note_title;
    }
    public String getNoteContent() {
    	return note_content;
    }
    public String getExtraType() {
    	return note_extra_type;
    }
    public String getExtraContent() {
    	return note_extra_content;
    }
}
